﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Services;
using DataLayer;


public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    [WebMethod]
    public static void saveFunction(string name, string Dob, string certificate)
    {
        BusinessClass ob = new BusinessClass();
        ob.insertStudentData(name, Dob, certificate);

    }

    [WebMethod]
    public static void DeleteRecord(int student_pk,int student_fk)
    {
        BusinessClass ob = new BusinessClass();
        

    }

    [WebMethod]
    public static List<ShowStudentInfoResult> showRecord()
    {
        BusinessClass ob = new BusinessClass();
        return ob.showStudentInfo().ToList<ShowStudentInfoResult>();

    }

}